package chexuan.game.interfaces.io.connection;

import chexuan.game.bean.packet.common.Packet;

public interface PacketInterceptor {

	/**
	 * Process the packet that is about to be sent to the server. The
	 * intercepted packet can be modified by the interceptor.
	 * <p>
	 * 
	 * Interceptors are invoked using the same thread that requested the packet
	 * to be sent, so it's very important that implementations of this method
	 * not block for any extended period of time.
	 * 
	 * @param packet
	 *            the packet to is going to be sent to the server.
	 */
	public void interceptPacket(Packet packet);
}
